var WebGL = Laya.WebGL,
  GameMain = (function () {
    function a() {
      Laya.init(375, 667, WebGL),
        (Laya.stage.alignH = Laya.Stage.ALIGN_CENTER),
        (Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE),
        (Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL),
        Laya.Browser.onPC
          ? (Laya.stage.screenMode = Laya.Stage.SCREEN_NONE)
          : (Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL),
        (Laya.stage.bgColor = "#050042");
      var a = [
        { url: "res/atlas/comp/preload.atlas", type: Laya.Loader.ATLAS },
      ];
      Laya.loader.load(a, Laya.Handler.create(this, this.OnLoaded)),
        Browser.onIOS && Browser.document.webkitCancelFullScreen();
    }
    return (
      (a.prototype.OnLoaded = function () {
        var a = [
          { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS },
          { url: "res/atlas/comp/login.atlas", type: Laya.Loader.ATLAS },
        ];
        Laya.loader.load(
          a,
          Laya.Handler.create(this, function () {
            (Browser.document.getElementById("loading").style.display = "none"),
              Laya.stage.addChild(new LoginView());
          }),
          Laya.Handler.create(
            AXProgressBarView,
            AXProgressBarView.onLoadedRecourse,
            null,
            !1
          )
        );
      }),
      (a.prototype.test = function () {
        WebSocketService.open(
          "ws://www.iiqingqu.com:8100/websocket?t=0733669860ab90ddf2d3a753235d6089"
        ),
          WebSocketService.send({ c: 3, d: null });
      }),
      a
    );
  })();
new GameMain();
